package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Auther Bennie
 * @Date 2020/6/19 17:42
 * @Description
 */
@Data
@Accessors(chain = true)
@TableName(value = "d_camerazones")
public class CameraZone {
    @JSONField(name = "Id")
    @TableId(value = "Id",type = IdType.AUTO)
    private Long id;

    @JSONField(name = "CameraId")
    @TableField(value = "CameraId")
    private Long cameraId;

    @JSONField(name = "Zone")
    @TableField(value = "Zone")
    private String zone;

    @JSONField(name = "ZoneClass")
    @TableField(value = "ZoneClass")
    private String zoneClass;


    @JSONField(name = "UpdateTime")
    @TableField(value = "UpdateTime")
    private LocalDateTime updateTime;

    @JSONField(name = "UpdateUser")
    @TableField(value = "UpdateUser")
    private String updateUser;

    /**
     * 1 代表可用
     * -1 代表不可用
     */
    @JSONField(name = "Enabled")
    @TableField(value = "Enabled")
    private Integer enabled;

}
